package com.tiger.pojo.homePage;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * @author HuXuehao (StudiousTiger)
 * @desc 这个类的作用是
 * @date 2022/2/9
 */
@Document(indexName = "homepage_of_search")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HotArticle implements Serializable {
    @Field(type = FieldType.Text, store = true)
    private String articleId;
    @Field(type = FieldType.Text, store = true, analyzer = "ik_max_word")
    private String title;
    @Field(type = FieldType.Text, store = true)
    private String titleDescribe;
    @Field(type = FieldType.Text, store = true)
    private String describeFilename;
    @Field(type = FieldType.Text, store = true)
    private String userId;
    @Field(type = FieldType.Text, store = true)
    private String userHeadPhotoPath;
    @Field(type = FieldType.Text, store = true)
    private String userNickname;
    @Field(type = FieldType.Text, store = true)
    private String date;
    @Field(type = FieldType.Integer, store = true)
    private int act;
    @Field(type = FieldType.Integer, store = true)
    private int star;
    @Field(type = FieldType.Text, store = true)
    private String classify;
    @Field(type = FieldType.Text, store = true)
    private String label;
    @Field(type = FieldType.Text, store = true)
    private String quality;
}
